package com.wandian.texas.db;

/**
 * @author long
 * @Create 2012-10-8 上午9:41:57
 * @QQ 108232706
 * @version 1.0
 * @description DbParameter
 */
public class DbParameter {
	private String direction;
	private final int dbtype;
	private Object info;
	private boolean input = true;

	public DbParameter(String ParameterDirection, int types, Object info)
	{
		this.direction = ParameterDirection;
		this.dbtype = types;
		this.info = info;
	}

	public DbParameter(int types, Object info) {
		this.dbtype = types;
		this.info = info;
	}

	/**
	 * 输出参数
	 * @param types
	 */
	public DbParameter(int types) {
		this.dbtype = types;
		input = false;
	}

	public DbParameter(boolean _input, int types, Object info) {
		this.dbtype = types;
		this.info = info;
		this.setInput(_input);
	}

	public DbParameter(String ParameterDirection, int Types)
	{
		this.direction = ParameterDirection;
		this.dbtype = Types;
	}

	public String getDirection() {
		return this.direction;
	}

	public int getDbtype() {
		return this.dbtype;
	}

	public Object getResult() {
		return this.info;
	}

	public void setResult(Object result) {
		this.info = result;
	}

	public boolean isInput() {
		return input;
	}

	public void setInput(boolean input) {
		this.input = input;
	}
}
